home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / stuff.doc < prev    next >
Text File  |  1986-09-23  |  922b  |  39 lines

  1.  
  2.  
  3.  
  4.  
  5.         NAME
  6.                 stuff -- get equipment report (high level)
  7.  
  8.         SYNOPSIS
  9.                 r = _stuff(kind);
  10.                 int r;     result of test
  11.                 int kind;  kind of equipment to test for
  12.  
  13.  
  14.         DESCRIPTION
  15.         This function calls _stuff() and checks the appropriate
  16.         bits returned depending upon the kind of information
  17.         requested.  Kind is one of the following:
  18.                0 = initial video mode
  19.                     mode 0, 2, or 7 returned
  20.                1 = number of disk drives
  21.                2 = number of printers
  22.                3 = number of serial ports
  23.                4 = joystick installed
  24.  
  25.  
  26.         EXAMPLE
  27.  
  28.                  int r;
  29.                  r = stuff(0);
  30.                  if(r == 7) printf("Monochrome card installed");
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.